<template>
  <div
    class="global-common-group-title-container"
    :style="{ '--theme-color': systemInfo.theme }"
  >
    {{ title }}
  </div>
</template>

<script>
import { mapGetters } from "vuex";

export default {
  name: "index",
  props: {
    title: {
      type: String,
      default: "标题",
    },
  },
  data() {
    return {};
  },
  computed: {
    ...mapGetters(["systemInfo"]),
  },
  methods: {},
  mounted() {},
};
</script>

<style scoped lang="scss">
.global-common-group-title-container {
  font-size: 14px;
  height: 42px;
  line-height: 18px;
  display: flex;
  align-items: center;
  padding: 12px 0;
  color: #303133;
  box-sizing: border-box;

  &:before {
    content: "";
    height: 14px;
    margin-right: 4px;
    width: 3px;
    background-color: var(--theme-color);
    display: inline-block;
  }
}
</style>
